package com.wuliu.driver.util;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMq {

    @Bean
    public Queue queue(){
        //创建一个队列
        return new Queue("orders_finish");
    }
}
